package org.hongqi.common.senpec;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
@Slf4j
@RequiredArgsConstructor
@EnableScheduling
//@EnableDiscoveryClient
public class SenpecApplication {

    public static void main(String[] args) {
        SpringApplication.run(SenpecApplication.class, args);
    }

    @GetMapping("/error")
    public String error() {
        return "error page";
    }

    @GetMapping
    public String index() {
        return "index page";
    }


}